from tortoise import BaseDBAsyncClient


async def upgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `admin_operation_log` ADD `ip` VARCHAR(255) COMMENT 'ip地址';"""


async def downgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `admin_operation_log` DROP COLUMN `ip`;"""
